package com.fanqwz.kotlinmvvm.di.module

import com.fanqwz.kotlinmvvm.di.scope.PerActivity
import com.fanqwz.kotlinmvvm.ui.activity.login.LoginActivity
import com.fanqwz.kotlinmvvm.ui.activity.login.LoginActivityModule
import com.fanqwz.kotlinmvvm.ui.activity.main.MainActivity
import com.fanqwz.kotlinmvvm.ui.activity.main.MainActivityModule
import dagger.Module
import dagger.android.ContributesAndroidInjector

/**
 * Created by fanqwz on 2018/2/28.
 */
@Module
abstract class ActivityBindingModule {
    @PerActivity
    @ContributesAndroidInjector(modules = [MainActivityModule::class])
    abstract fun baseActivity(): MainActivity
    @PerActivity
    @ContributesAndroidInjector(modules = [LoginActivityModule::class])
    abstract fun loginActivity(): LoginActivity

}